<?php

namespace Client\Model;

use Think\Model\ViewModel;

class ScenicModel extends ViewModel {
	public $viewFields = array(
			'Scenic'        =>array('id','name','address','image','subtitle','phone','intro','latitude','longitude','(SELECT COUNT(*) FROM tb_scenic_discuss where Scenic.id=tb_scenic_discuss.sid)' => 'discuss_num','_type'=>'LEFT'),
// 			'Scenic'        =>array('id','name','address','image','subtitle','phone','intro','latitude','longitude'),
			'OtherTicket'   =>array('ticket_info', '_on'=>'Scenic.id=OtherTicket.scenic_id','_type'=>'LEFT'),
	);
}